﻿@model CallCenter.Data.Models.RoleUserModel

@{
    ViewBag.Title = "Manage User";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<style>
    .form-control {
        width: 25%;
    }

    .Success {
        color: green;
        font-weight:bolder;
    }
</style>
<hr />
@using (Html.BeginForm("ManageUser", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
    <div class="form-group">
        <label class="col-md-2 control-label" style="font-size: 20px;">
            Manage User Role
        </label>
    </div>
    <div class="Success">
                @ViewBag.Message
    </div>
    <div class="form-group">
        @Html.Label(" User", new { @class = "col-md-2 control-label" })
        <div class="col-md-10">
            @*@Html.DropDownList("Name")*@
            @Html.DropDownList("UserId", (IEnumerable<SelectListItem>)ViewBag.UserID, new { @class = "form-control" })
        </div>
    </div>
    
    <div class="form-group">
        @Html.Label("Role", new { @class = "col-md-2 control-label" })
        <div class="col-md-10">
            @*@Html.DropDownList("Name")*@
            @Html.DropDownList("RoleId", (IEnumerable<SelectListItem>)ViewBag.RoleId, new { @class = "form-control" })
        </div>
    </div>
    
    <div class="form-group">
        <div class="col-md-offset-2 col-md-10">
            <input type="submit" class="btn btn-default" value="Update" />
        </div>
    </div>
}

